from django.urls import path, include

from . import views

urlpatterns = [
    path('login/', views.Login.as_view()),
    path('department/', views.DepartmentAPIView.as_view()),
    path('user/', views.UserAPIView.as_view()),
    path("leave/", include([
        path("user/", views.leave_user),
        path("id/", views.leave_id),
        path("application/", views.leave_application),
        path("all/", views.leave_all),
        path("employee/", include([
            path("agreement/", views.leave_employee_agreement),
            path("disagreement/", views.leave_employee_disagreement),
        ])),
        path("manager/", include([
            path("agreement/", views.leave_manager_agreement),
            path("disagreement/", views.leave_manager_disagreement),
        ]))
    ]))
]
